﻿using System;
using System.Data;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.OleDb;

namespace ks
{
    public partial class 后台管理 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {if (Session["name"] != null)
            { Label3.Text = "共有" + Session["name"] + "次点赞"; }

        }



        protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
        {

        }
  
        protected void Button1_Click(object sender, EventArgs e)
        {
            string sql = "select* from 风云音乐榜 where 年份='" + TextBox1.Text + "' and 歌手='" + TextBox2.Text + "'";


            //查询数据
            DataTable table = 桥梁.ExecuteDataTable(sql);
            this.GridView1.DataSourceID = null;
            GridView1.DataSource = table;
            GridView1.DataBind();
        }
    }

 
}